package org.adorsys.aderp.booking.domain;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.ManyToMany;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaEntity
public class Room {

    @NotNull
    @Column(name = "roomKeyBk", unique = true)
    private String roomKey;

    @NotNull
    @Column(unique = true)
    private String roomNumber;

    private String phoneNumber;

    private String coordinates;

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<RoomObject> roomObject = new HashSet<RoomObject>();

    private Boolean disponibility;

    private String capacity;

    private BigDecimal surface;

    @Size(max = 255)
    private String description;

    private String recordOwner;
}
